{% extends "base.html" %}
{% block header%}
<script type="text/javascript">
    //var myCalendar;
    function doOnLoad() {
        //myCalendar = new dhtmlXCalendarObject([ "dt1", "dt2" ]);
        //myCalendar.loadUserLanguage('cn');
    }
</script>
{% endblock%}
{% block content %}
    <div class="pageContent">
      <table class="dhtmlxGrid" gridHeight="auto" name="grid2" imgpath="/static/js/codebase/imgs/" width="98%" lightnavigation="true">
    <tr>
            <td type="ro">报表类型</td>
            <td type="ro">开始时间</td>
            <td type="ro">结束时间</td>
            <td type="ro">操作</td>
          </tr>
          {%for schedule in list%}
          <tr>
            <td>{{schedule.schedule_type.name}}</td>
            <td>{{schedule.start_date|date:"Y-m-d"}}</td>
            <td>{{schedule.end_date|date:"Y-m-d"}}</td>
            <td>{%if schedule.status == 1 %}<a href="/schedule/view/{{schedule.id}}" target="navTab" rel="view_schedule" title="查看计划">查看</a>&nbsp;&nbsp;<a href="/approved/do/{{schedule.id}}" target="navTab" rel="approve_page" title="审批计划">审批</a>{%endif%}</td>
          </tr>
          {%endfor%}
      </table>
     </div>
{% endblock %}